package com.zc.app.shiro.service;


import com.zc.app.shiro.dao.OrganizationDao;
import com.zc.app.shiro.peer.OrganizationPeer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


//@Service
public class OrganizationServiceImpl implements OrganizationService {
//    @Autowired
    private OrganizationDao organizationDao;

    @Override
    public OrganizationPeer createOrganization(OrganizationPeer organization) {
        return organizationDao.createOrganization(organization);
    }

    @Override
    public OrganizationPeer updateOrganization(OrganizationPeer organization) {
        return organizationDao.updateOrganization(organization);
    }

    @Override
    public void deleteOrganization(Long organizationId) {
        organizationDao.deleteOrganization(organizationId);
    }

    @Override
    public OrganizationPeer findOne(Long organizationId) {
        return organizationDao.findOne(organizationId);
    }

    @Override
    public List<OrganizationPeer> findAll() {
        return organizationDao.findAll();
    }

    @Override
    public List<OrganizationPeer> findAllWithExclude(OrganizationPeer excludeOraganization) {
        return organizationDao.findAllWithExclude(excludeOraganization);
    }

    @Override
    public void move(OrganizationPeer source, OrganizationPeer target) {
        organizationDao.move(source, target);
    }
}
